<template>
	<view>
		<VisionTester :args="visionTesterArgs"></VisionTester>
		<image src="/static/questionnaire/image/E-up.svg" class="image"></image>
		<view>屏幕尺寸{{ width }} * {{  height }}</view>
		<view> ppi: {{ width / 7 * 2.54 }}</view>
		<view> pixelRatio: {{ pixelRatio }}</view>
	</view>
</template>

<script>
import VisionTester from '@/sub_pages/components/Questionnare/VisionTester/VisionTester.vue'
	export default {
		data() {
			return {
				visionTesterArgs: {
					type: "large",
					number: 5
				},
				width: 0,
				height: 0,
				pixelRatio: 0,
			}
		},
		components: {
			VisionTester
		},
		methods: {
			
		},
		mounted() {
			const systemInfo = uni.getSystemInfoSync();
			this.width = systemInfo.windowWidth;
			this.height = systemInfo.windowHeight;
			this.pixelRatio = systemInfo.pixelRatio;
		}
	}
</script>

<style>

.image {
	width: 4.2cm;
	height: 4.2cm;
}
</style>
